import 'package:fish_redux/fish_redux.dart';

enum WebAction { action, onInit, countUp, onTitle, onDone, onShare }

class WebActionCreator {
  static Action onAction() {
    return const Action(WebAction.action);
  }

  static Action onInit() {
    return Action(WebAction.onInit);
  }

  static Action countUp(int count) {
    return Action(WebAction.countUp, payload: count);
  }

  static Action onTitle(String title) {
    return Action(WebAction.onTitle, payload: title);
  }

  static Action onDone() {
    return const Action(WebAction.onDone);
  }

  static Action onShare() {
    return const Action(WebAction.onShare);
  }
}
